/*    */ package com.zimbra.cs.mailclient.imap;
/*    */ 
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public enum CAtom
/*    */ {
/* 26 */   NIL,  OK,  NO,  BAD,  BYE,  PREAUTH,  CAPABILITY,  LOGOUT,  NOOP,  ID, 
/* 27 */   STARTTLS,  CHECK,  CLOSE,  EXPUNGE,  COPY,  CREATE,  DELETE,  EXAMINE,  FETCH, 
/* 28 */   ALL,  FULL,  FAST,  ENVELOPE,  FLAGS,  INTERNALDATE,  RFC822_HEADER("RFC822.HEADER"), 
/* 29 */   RFC822_SIZE("RFC822.SIZE"),  RFC822_TEXT("RFC822.TEXT"),  BODY,  BODYSTRUCTURE, 
/* 30 */   STRUCTURE,  UID,  BODY_PEEK("BODY.PEEK"),  LIST,  XLIST,  LOGIN,  LSUB,  INBOX, 
/* 31 */   SEARCH,  SORT,  STATUS,  EXISTS,  RECENT,  APPLICATION,  AUDIO,  IMAGE,  MESSAGE,  VIDEO, 
/* 32 */   TEXT,  RENAME,  ALERT,  BADCHARSET,  PERMANENTFLAGS,  SELECT,  AUTHENTICATE, 
/* 33 */   READ_ONLY("READ-ONLY"),  READ_WRITE("READ-WRITE"),  TRYCREATE,  UIDNEXT, 
/* 34 */   UIDVALIDITY,  UNSEEN,  CHARSET,  ANSWERED,  BCC,  BEFORE,  CC,  PARSE, 
/* 35 */   DELETED,  FROM,  KEYWORD,  NEW,  OLD,  ON,  SEEN,  SINCE,  SUBJECT,  TO,  COPYUID, 
/* 36 */   UNANSWERED,  UNDELETED,  UNFLAGGED,  UNKEYWORD,  DRAFT,  HEADER,  APPENDUID, 
/* 37 */   LARGER,  NOT,  OR,  SENTBEFORE,  SENTON,  SENTSINCE,  SMALLER,  UNDRAFT,  IDLE, 
/* 38 */   HEADER_FIELDS("HEADER.FIELDS"),  HEADER_FIELDS_NOT("HEADER.FIELDS.NOT"), 
/* 39 */   MIME,  MESSAGES,  STORE,  FLAGS_SILENT("FLAGS.SILENT"),  SUBSCRIBE,  UNSELECT, 
/* 40 */   UNSUBSCRIBE,  APPEND,  CATENATE,  URL,  F_ANSWERED("\\Answered"), 
/* 41 */   F_FLAGGED("\\Flagged"),  F_DELETED("\\Deleted"),  F_SEEN("\\Seen"), 
/* 42 */   F_DRAFT("\\Draft"),  F_RECENT("\\Recent"),  F_NOINFERIORS("\\Noinferiors"), 
/* 43 */   F_NOSELECT("\\Noselect"),  F_MARKED("\\Marked"),  F_UNMARKED("\\Unmarked"), 
/* 44 */   F_STAR("\\*"),  UNKNOWN("");
/*    */   
/*    */   private final Atom atom;
/*    */   
/* 48 */   static { byAtom = new HashMap();
/*    */     
/*    */ 
/* 51 */     for (CAtom catom : values())
/* 52 */       byAtom.put(catom.atom(), catom);
/*    */   }
/*    */   
/*    */   private static final Map<Atom, CAtom> byAtom;
/*    */   public static CAtom get(String name) {
/* 57 */     return get(new Atom(name));
/*    */   }
/*    */   
/*    */   public static CAtom get(Atom atom) {
/* 61 */     CAtom ca = (CAtom)byAtom.get(atom);
/* 62 */     return ca != null ? ca : UNKNOWN;
/*    */   }
/*    */   
/*    */   private CAtom() {
/* 66 */     this.atom = new Atom(name());
/*    */   }
/*    */   
/*    */   private CAtom(String s) {
/* 70 */     this.atom = new Atom(s);
/*    */   }
/*    */   
/*    */   public Atom atom() {
/* 74 */     return this.atom;
/*    */   }
/*    */   
/*    */   public String toString() {
/* 78 */     return atom().getName();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/mailclient/imap/CAtom.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */